#ifndef QMSGTEXTEDIT_H
#define QMSGTEXTEDIT_H

#include <QWidget>
#include <QTextEdit>

class QMsgTextEdit : public QTextEdit
{
    Q_OBJECT
public:
    explicit QMsgTextEdit(QWidget *parent = nullptr);
    ~QMsgTextEdit();
    void addEmotionUrl(QString filename);
    void delteAllEmotionImage();
private:
    QList<QString> m_listEmotionUrl;//表情
    QMap<QMovie*,QString> m_emotionMap;
signals:

protected slots:
    void onEmotionImageFrameChange(int frame);
};

#endif // QMSGTEXTEDIT_H
